export function isStopAccidentally(errorMessage: string): boolean {
    return !errorMessage.startsWith("Command failed with exit code 1:");
}

export function isPortNotExist(errorMessage: string): boolean {
    return errorMessage.includes("Specified port") && errorMessage.includes("does not exist");
}

export function isPortOccupied(errorMessage: string): boolean {
    return errorMessage.includes("Unknown error opening the serial port:")
}